home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / rocketman.swf / scripts / DefineSprite_495 / frame_1 / DoAction.as
Text File  |  2007-01-12  |  394b  |  27 lines

  1. onEnterFrame = function()
  2. {
  3.    if(_parent.boost == null)
  4.    {
  5.       bar._xscale = 0;
  6.    }
  7.    else
  8.    {
  9.       bar._xscale = _parent.boost;
  10.    }
  11.    if(_parent.boost <= 14)
  12.    {
  13.       if(_parent.boost > 0)
  14.       {
  15.          lowfuel.gotoAndStop(2);
  16.       }
  17.       else
  18.       {
  19.          lowfuel.gotoAndStop(3);
  20.       }
  21.    }
  22.    else
  23.    {
  24.       lowfuel.gotoAndStop(1);
  25.    }
  26. };
  27.